#ifndef LIBRARY_FUNCTIONS_H
#define LIBRARY_FUNCTIONS_H

#include "BON.h"
#include "BON2Component.h"

#include <string>

namespace GOAL
{
  bool objectExists (const std::string& path, BON::Folder& root);

  BON::Object getObjectByPath (const std::string& path, 
    BON::Folder& root);

  BON::Object getObjectByPath (const std::string& path, 
    BON::Model& current, BON::Object& path_relative_to);

  std::string getParentPath (const std::string& path);

//CBuilderModel::CloneHere(CBuilderObject *)

  namespace Library
  {
    // public constant declarations
    const std::string Primitives = "Primitives";

    // function for reading a predefined library
    //void read (const std::string& name, BON::CBuilderObject& library);
  }
}

#endif